class Gamestats:
	"""跟踪游戏信息 Gamestats"""

	def __init__(self, ai_game):
		"""初始化统计信息"""
		self.settings = ai_game.settings
		self.reset_stats()

		# 游戏启动时处于非活动状态
		self.game_active = False
		# 不该重置的最高分
		self.high_score = 0

	def reset_stats(self):
		"""初始化在游戏运行期间可能变化的统计信息"""
		self.ships_left = self.settings.ship_limit
		self.score = 0
		self.level = 1
		